@import "@/common/constants/StyleConst.scss";

.Attendance-container {
  height: calc(100vh - 120px);
  background: $color-bg-white;
  min-height: 300px;

  .main-wrap {
    height: 100%;

    .treeGroup-wrap {
      height: 100%;
    }

    .map-wrap {
      height: 100%;
      box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.25);
      position: relative;
      border-radius: 8px;

      .attendance-record-title {
        color: #556282;
        position: absolute;
        font-size: 18px;
        font-weight: 700;
        left: 10px;
        top: -10px;
        z-index: 20;
        transform: translateY(-100%);
      }

      .map-wrap-content {
        border-radius: 8px;
        overflow: hidden;
        height: 100%;

        .map-search-panel {
          // position: absolute;
          // bottom: 0;
          position: unset;

          .v-expansion-panel {
            width: 100%;
            position: absolute;
            bottom: 0;
            transition: height 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
            height: 40px;

            &.v-expansion-panel--active {
              height: 40%;
            }

            &:not(.v-expansion-panel--active) {
              max-height: 40%;

              :deep .v-expansion-panel-content {
                height: auto;
              }
            }

            .expansion-panel-header {
              background-color: $color-theme-blue;
              color: #fff;
              height: 40px;
              min-height: 40px;
              border-radius: unset;

              .label {
                font-weight: 700;
              }

              .export-icon {
                font-size: 16px;
              }

              .picker-input {
                :deep .v-input__slot {
                  padding: 0 16px;
                  padding-right: 4px;

                  .v-text-field__slot {
                    input {
                      font-size: 12px;
                    }
                  }
                }
              }
            }

            :deep .v-expansion-panel-content {
              &:not(.expand-transition-enter-active) {
                height: calc(100% - 40px);
                overflow-y: scroll;
                overflow-y: overlay;
              }

              .v-expansion-panel-content__wrap {
                padding: unset;
              }
            }

            .attendance-table {
              height: 100%;

              :deep .theme--light.v-data-table.table {

                .v-data-table-header {
                  th {
                    background-color: #DFE1E8;
                  }

                  tr th {
                    color: $color-theme-grey;
                  }
                }
              }
            }
          }
        }
      }

    }
  }
}

.attendance-record-dialog {
  position: relative;

  .radio-input :deep {
    flex-direction: row-reverse;
    justify-content: center;

    .v-input--selection-controls__input {

      .v-icon::before {
        font-size: 12px;
      }
    }

    .v-label {
      width: 150px;
      flex-grow: 0;
      color: #565656;
    }
  }

  .export-btn {
    position: absolute;
    right: 22px;
    bottom: 18px;
    width: 40px;
    height: 40px;

    .export-icon::before {
      font-size: 16px;
    }
  }
}